<pre>  /**
   * The constants used in this Content Widget.
   */
  public static interface CwConstants extends Constants {
    String cwGridDescription();

    String cwGridName();
  }

  /**
   * Initialize this example.
   */
  @Override
  public Widget onInitialize() {
    // Create a grid
    Grid grid = new Grid(4, 4);

    // Add images to the grid
    int numRows = grid.getRowCount();
    int numColumns = grid.getColumnCount();
    for (int row = 0; row &lt; numRows; row++) {
      for (int col = 0; col &lt; numColumns; col++) {
        grid.setWidget(row, col, new Image(Showcase.images.gwtLogo()));
      }
    }

    // Return the panel
    grid.ensureDebugId("cwGrid");
    return grid;
  }

</pre>